package com.boy.service.message;

import com.boy.commonutils.config.RabbitMQConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @author whd
 * @date 2024/08/24 16:14:42
 */
@Service
@Slf4j
public class MessageService {
    @RabbitListener(queues = RabbitMQConfig.QUEUE_NAME)
    public void receiveReminder(String message) {
        log.info("Received reminder: " + message);
        // 处理收到的消息
    }
}
